/* Google Fonts import */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: black; /* 배경을 검은색으로 지정 (비디오와 호환) */
  font-family: "Roboto", Arial, sans-serif; /* Roboto 폰트 적용 */
  overflow: hidden; /* 동전이 화면 밖으로 나가는 것을 허용 */
}

/* 배경 동영상 스타일 */
#background-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw; /* 전체 화면 너비 */
  height: 100vh; /* 전체 화면 높이 */
  object-fit: cover; /* 비율을 유지하면서 화면을 꽉 채움 */
  transform: translate(-50%, -50%);
  z-index: -1; /* 모든 콘텐츠 뒤로 배경 배치 */
}

/* 콘텐츠 중앙 정렬 */
#content {
  position: relative;
  z-index: 1; /* 콘텐츠가 비디오 위에 표시되도록 설정 */
  text-align: center;
}

/* 텍스트와 입력 필드 스타일 */
#date,
#clock,
input[type="number"],
select,
button,
label,
#money-container {
  background-color: rgba(0, 0, 0, 0.6); /* 검은색 반투명 배경 */
  border-radius: 15px; /* 둥근 모서리 */
  color: #fff; /* 흰색 글씨 */
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

#date {
  font-size: 2rem;
}

#clock {
  font-size: 5rem;
  margin-bottom: 2rem;
}

input[type="number"],
select {
  font-size: 1rem;
  padding: 0.5rem;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="number"]::placeholder,
select::placeholder {
  color: #fff; /* 흰색 글씨 */
}

button {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border: none;
  border-radius: 15px; /* 둥근 모서리 */
  background-color: rgba(0, 0, 0, 0.6); /* 검은색 반투명 배경 */
  color: rgb(234, 236, 151);
  cursor: pointer;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* #money-container {
  position: absolute;
  width: 100vw;
  height: 100vh; 
  overflow: hidden; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none; 
} */

/* #total-money {
  position: relative;
  color: #e96262; 
  font-size: 2rem; 
  margin-top: 1rem; 
} */

#total-amount {
  display: block;
  font-size: 3rem;
  color: #f37878;
  margin-top: 0.5rem;
}

#annual-salary {
  display: block;
  font-size: 1.5rem;
  color: #f63f3f;
  margin-top: 0.5rem;
}

.money {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url("coin-image/single-coin.png"); /* 동전 이미지 경로 */
  background-size: cover;
  opacity: 0.9;
  animation: fall linear;
}

@keyframes fall {
  0% {
    transform: translateY(-100px); /* 시작 위치 */
    opacity: 1;
  }
  100% {
    transform: translateY(100vh); /* 화면 아래까지 떨어짐 */
    opacity: 0;
  }
}
